Release 10.1A: OpenEdge Development:
Web Services
Creating and using a SubAppObject
Any AppObject that defines SubAppObjects also defines a built-in class factory method specifically for each SubAppObject. This method establishes an association between the client and the SubAppObject managed on the WSA for use by the client.
![]()
To create and use a SubAppObject:
- Call the class factory method for this SubAppObject on the parent AppObject.
- Instantiate (create) the SubAppObject as appropriate for the client platform.
- Obtain the SubAppObject ID value from the response header. You use the SubAppObject ID for all subsequent calls to methods on the SubAppObject.
- Invoke any available methods on the SubAppObject.
Note: You can instantiate a SubAppObject either before or after calling the class factory method, but you must do both to invoke methods on the SubAppObject.- Ensure the last method you invoke on the SubAppObject is the object’s release method. For more information, see the "Releasing an object" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |